<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$smile_id = $route->POST("smile_id");
$symbol = UV::readMQ($route->POST("symbol"));
$type = UV::readMQ($route->POST("type"));

$query = "update `smiles` set `type` = '$type',`symbol` = '$symbol' where `smile_id` = '$smile_id' limit 1";
$update = $db->sendQuery($query);

if ($update)
	goToPage("/admin/smiles/?edit=success");
goToPage("/admin/smiles/?edit=fail");

?>